package com.sengled.cloud.biz.union.mgt.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created by FMC on 2017/10/27.
 */
@Data
@ApiModel
public class SaveUserRequest {
	@ApiModelProperty(position = 1,  dataType = "Long", value = "ID,新增时为非必填项，可以不用填写")
	private Long id;

	@ApiModelProperty(position = 2, required = true, dataType = "String", value = "职员ID")
	private String userCode;

	@ApiModelProperty(position = 3, required = true, dataType = "String", value = "姓名")
	private String userName;
	
	@ApiModelProperty(position = 4, required = true, dataType = "Long", value = "性别   0男 / 1女 ")
	private Integer sex;

	@ApiModelProperty(position = 5, required = true, dataType = "Long", value = "职位(角色)")
	private Long roleId;
	
	@ApiModelProperty(position = 6, required = true, dataType = "Long", value = "归属店铺")
	private Long shopId;

	@ApiModelProperty(position = 7, dataType = "String", value = "身份证号")
	private String idNumber;

	@ApiModelProperty(position = 8, required = true, dataType = "String", value = "联系方式")
	private String contact;

	@ApiModelProperty(position = 9, required = true, dataType = "Long", value = "工作状态   1在职 / 2离职/ 3休假  新增默认为在职")
	private Long workCondition;

	@ApiModelProperty(position = 10, dataType = "String", value = "入职日期(yyyy-MM-dd)", example = "2017-09-27")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private String hireDateStr;
	
	@ApiModelProperty(position = 11, dataType = "String", value = "离职日期(yyyy-MM-dd)", example = "2017-09-27")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private String leaveDateStr;
}
